package com.smartcity.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author chen
 * @since 2024-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@Schema(name = "User对象", description = "用户表User对象")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(name = "昵称",description ="姓名")
    @TableField("name")
    private String name;

    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "密码")
    @TableField("psw")
    private String psw;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "性别")
    @TableField("sex")
    private Boolean sex;

    @Schema(description = "电话")
    @TableField("tel")
    private String tel;

    @Schema(description = "证件号")
    @TableField("id_number")
    private String idNumber;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
